package com.security.springsecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.security.springsecurity.entity.Permission;
import com.security.springsecurity.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper extends BaseMapper<User> {
    List<Permission> findAll();
    List<Permission> findByAdminUserId(int userId);
}
